<template>
  <div>
      <home></home>
      <asyncCategory></asyncCategory>
  </div>
</template>

<script>
import home from './home.vue'
import { defineAsyncComponent } from 'vue'
// 使用defineAsyncComponent对组件进行一个异步加载，它接受一个函数，这个函数需要返回一个异步函数promise
// import asyncCategory from './asyncCategory.vue'
const asyncCategory = defineAsyncComponent(() => import('./asyncCategory.vue'))
export default {
    componens: {
        home,
        asyncCategory
    }
}
</script>

<style>

</style>